﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmployeeAdmin.aspx.cs" Inherits="Swindles.Employee.EmployeeAdmin" MasterPageFile="~/Swindles.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
<div>
    <table width="560" border="0" cellspacing="0" cellpadding="2" class="post">
    <tr>
        <td class="title">
            <h2>
                <a href="#">Edit Customer Details</a></h2>
        </td>
    </tr>
    <tr>
        <td>
            <asp:DataGrid ID="grdCustomer" runat="server" AutoGenerateColumns="false" DataKeyField="CustomerID" Width=100%>
             <HeaderStyle HorizontalAlign="Center" ForeColor="WhiteSmoke" BackColor="Gray" Height="50px" Font-Size="15" Font-Names="Georgia"/>
        <ItemStyle HorizontalAlign="Center" Font-Names="Verdana" Width="75px" Font-Size="8"  />
        <AlternatingItemStyle HorizontalAlign="Center" Font-Names="Verdana" Width="75px" Font-Size="8"  />
        <EditItemStyle HorizontalAlign="Center" Font-Names="Verdana" BackColor="LightGray" Width="75px" Font-Size="8" />
            <Columns>
                <asp:HyperLinkColumn DataTextField="CustomerID" HeaderText="Customer ID" 
                DataNavigateUrlFormatString="../Customer/CustomerDetails.aspx?id={0}" DataNavigateUrlField="CustomerID">
                </asp:HyperLinkColumn>
                <asp:BoundColumn DataField="CustomerNo" HeaderText="Customer No" ReadOnly="true"></asp:BoundColumn>
                <asp:BoundColumn DataField="FirstName" HeaderText="First Name"></asp:BoundColumn>
                <asp:BoundColumn DataField="LastName" HeaderText="Last Name"></asp:BoundColumn>
                <asp:BoundColumn DataField="ContactNumber" HeaderText="Contact Number"></asp:BoundColumn>
                <asp:BoundColumn DataField="ContactAddress" HeaderText="Contact Address"></asp:BoundColumn>
                <asp:EditCommandColumn ItemStyle-Width="150" HeaderText="Edit" EditText="Edit" CancelText="Cancel" UpdateText="Update" ButtonType="PushButton" ItemStyle-HorizontalAlign="Center" >
                </asp:EditCommandColumn>
               
            </Columns>
            </asp:DataGrid>
        </td>
    </tr>
    </table>
</div>
</asp:Content>
